//
//  TemplateCellProtocol.h
//  MVP_DesignModel_OCVersion
//
//  Created by DeLongYang on 2017/7/21.
//  Copyright © 2017年 DeLongYang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TemplateRenderProtocol.h"

typedef void (^TapBlock)(NSIndexPath *indexPath);

@protocol TemplateCellProtocol <NSObject>

@optional

- (void)processData:(id<TemplateRenderProtocol>)data;

+ (CGSize )calculateWithData:(id<TemplateRenderProtocol>)data
           constraindeToSize:(CGSize )size;


- (void)tapOneBlock:(TapBlock )tapBlock;

@end
